package com.lwq.util;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
import org.springframework.stereotype.Component;

/**
 * Description:
 * Author: LiuWenQing
 * Datetime: 2021/6/14
 */
@Component
public class ThreadPoolUtil {

    Logger LOG = LoggerFactory.getLogger(ThreadPoolUtil.class);

    @Autowired
    private ThreadPoolTaskExecutor taskExecutor;

    public  void addLog(Object o){
//        taskExecutor.execute(() -> {
//            try {
//
//            } catch (InterruptedException e) {
//                e.printStackTrace();
//            }
//        });
    }
}
